<?php

namespace App\Models;

use Rennokki\QueryCache\Traits\QueryCacheable;

class Credit extends Base
{
    use QueryCacheable;
    const STATUS_NOT_IN = 1;
    const STATUS_NOT_OUT = 2;
    public $timestamps = false;

    public $cacheFor = 1800;
    protected static $flushCacheOnUpdate = true;


    public function user() {
        return $this->belongsTo(User::class, 'user_id')->withTrashed();
    }
}
